<template>
    <div class="error_page">
        <img src="/403@2x.png" />
        <div>
            <h2>403</h2>
            <p>抱歉，你无权访问该页面</p>
            <SCButton type="primary" @click="backHome">返回首页</SCButton>
            <SCButton type="" v-if="requestMenusNum > 1" @click="backLogin">返回登录页</SCButton>
        </div>
    </div>
</template>

<script setup lang="ts">
import { useUserStore } from "../../store/user";
const userStore = useUserStore();
const requestMenusNum = userStore.user?.requestMenuNum;
const backHome = () => {
    location.href = "/";
};
const backLogin = () => {
    location.href = "/login";
};
</script>

<style lang="scss">
@import "./style.scss";
// .mr20{
//     margin-right: 10px;
// }
</style>
